home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor2 / lastarg.doc < prev    next >
Text File  |  1995-03-31  |  1KB  |  29 lines

  1.         Using LASTARG to Recover from Stupid Keyboard Mistakes 
  2.                              by Joe Horn 
  3.  
  4. It is strange that none of the G Series manuals make any mention of 
  5. the three special uses of LASTARG for error recovery.  Same as in the 
  6. S Series, they are: 
  7.  
  8. (1) PURGE in a *program* only stores the argument into LASTARG, but 
  9.     pressing the PURGE *key* (iff there's a single untagged name on 
  10.     level 1) stores BOTH the name AND ITS FORMER CONTENTS into 
  11.     LASTARG, so that you can easily recover from an accidental PURGE 
  12.     by pressing LASTARG STO. 
  13.  
  14. (2) STO in a *program* stores the two arguments into LASTARG, but 
  15.     pressing the STO *key* (iff there's a single untagged name on 
  16.     level 1) stores the name AND ITS FORMER CONTENTS into LASTARG, so 
  17.     that you can easily recover from an accidental STO by pressing 
  18.     LASTARG STO LASTARG. 
  19.  
  20. (3) Pressing left-shift [varname] stores BOTH varname AND ITS FORMER 
  21.     CONTENTS into LASTARG, so that you can recover from an accidental 
  22.     left-shift [varname] by pressing LASTARG STO LASTARG DROP. 
  23.  
  24. Note: If the object accidentally stored in (2) or (3) is a directory 
  25. object, then LASTARG STO will error ("Directory Not Allowed"), but you 
  26. can use LASTARG RCL LASTARG DUP PGDIR ROT SWAP STO to recover. 
  27.  
  28. -jkh- 
  29.